<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        h1{
            color:red;
        }
    </style>
</head>
<body>
    <h1>1.遍历元组偶数</h1>
     {% for item in tuple%}
        {% if item%2==0 %}
            <h3>{{item}}</h3>
    {%endif%}
    {%endfor%}

    <h1>2.遍历字典</h1>
    {% for key in dict%}
    {# dict.key 相当于dict["key"]  #}
    <h3>{{key}} = {{dict[key]}} </h3>
    {%endfor%}


</body>
</html>